import lireg from "@/api/axios";
// 预警配置
export default {
  /**
 * @description: 获取投入类型管理类型树状图 *代表必填
 * @param {String/Number} page *
 * @param {String/Number} size *
 * @param {Object} entity {componyId: 1} *
 * @param {String} order 排序方式 ASC DESC 默认ASC
 * @param {String} sort 自定义排序方式 'createTime'
 * @return {Array}
 */
  // 添加繁育
  addbree(params, base) {
    return lireg.post('/warning/breedWarningConfig/add', params, base)
  },
  // 添加产羔
  addlamb(params, base) {
    return lireg.post('/warning/lambWarningConfig/add', params, base)
  },
  // 添加测定
  addmeas(params, base) {
    return lireg.post('/warning/measureWarningConfig/add', params, base)
  },
  // 添加防疫
  addeqid(params, base) {
    return lireg.post('/warning/epidemicPreventionConfig/add', params, base)
  },
  // 添加驱虫
  adddewo(params, base) {
    return lireg.post('/warning/dewormingWarnConfig/add', params, base)
  },
  // 添加饲料
  addfeed(params, base) {
    return lireg.post('/warning/feedChangeWarningConfig/add', params, base)
  },
  // 添加断奶
  addwean(params, base) {
    return lireg.post('/warning/weaningWarningConfig/add', params, base)
  },
  // 添加断奶
  addtupping(params, base) {
    return lireg.post('/warning/tuppingWarning/add', params, base)
  },
  //
  // ------------------------------------------------------------------------------------
  // 修改繁育
  editbree(params, base) {
    return lireg.post('/warning/breedWarningConfig/edit', params, base)
  },
  // 修改产羔
  editlamb(params, base) {
    return lireg.post('/warning/lambWarningConfig/edit', params, base)
  },
  // 修改测定
  editmeas(params, base) {
    return lireg.post('/warning/measureWarningConfig/edit', params, base)
  },
  // 修改防疫
  editeqid(params, base) {
    return lireg.post('/warning/epidemicPreventionConfig/edit', params, base)
  },
  // 修改驱虫
  editdewo(params, base) {
    return lireg.post('/warning/dewormingWarnConfig/edit', params, base)
  },
  // 修改驱虫
  editfeed(params, base) {
    return lireg.post('/warning/feedChangeWarningConfig/edit', params, base)
  },
  // 修改驱虫
  editwean(params, base) {
    return lireg.post('/warning/weaningWarningConfig/edit', params, base)
  },
  //  修改配种
  edittupping(params, base) {
    return lireg.post('/warning/tuppingWarning/edit', params, base)
  },

  // ------------------------------------------------------------------------------------
  // 删除繁育
  delbree(params, base) {
    return lireg.get(`/warning/lambWarningConfig/delByNo?no=${params}`, params, base)
  },
  // 删除产羔
  dellamb(params, base) {
    return lireg.get(`/warning/lambWarningConfig/delByNo?no=${params}`, params, base)
  },
  // 删除产羔
  delmeas(params, base) {
    return lireg.get(`/warning/measureWarningConfig/delByNo?no=${params}`, params, base)
  },
  // 删除防疫
  deleqid(params, base) {
    return lireg.get(`/warning/epidemicPreventionConfig/delByNo?no=${params}`, params, base)
  },
  // 删除防疫
  deldewo(params, base) {
    return lireg.get(`/warning/dewormingWarnConfig/delByNo?no=${params}`, params, base)
  },
  // 删除饲料
  delfeed(params, base) {
    return lireg.get(`/warning/feedChangeWarningConfig/delByNo?no=${params}`, params, base)
  },
  // 删除饲料
  delwean(params, base) {
    return lireg.get(`/warning/weaningWarningConfig/delByNo?no=${params}`, params, base)
  },
  // ------------------------------------------------------------------------------------
  // 批量删除繁育
  delListbree(params, base) {
    return lireg.post('/warning/breedWarningConfig/delListByNo', params, base)
  },
  // 批量删除产羔
  delListlamb(params, base) {
    return lireg.post('/warning/lambWarningConfig/delListByNo', params, base)
  },
  // 批量删除产羔
  delListmeas(params, base) {
    return lireg.post('/warning/measureWarningConfig/delListByNo', params, base)
  },
  // 批量删除防疫
  delListeqid(params, base) {
    return lireg.post('/warning/epidemicPreventionConfig/delListByNo', params, base)
  },
  // 批量删除防疫
  delListdewo(params, base) {
    return lireg.post('/warning/dewormingWarnConfig/delListByNo', params, base)
  },
  // 批量删除防疫
  delListwean(params, base) {
    return lireg.post('/warning/weaningWarningConfig/delListByNo', params, base)
  },
  // ------------------------------------------------------------------------------------
  // 防疫详情条件查询
  conditionepidemicConfigMapper(params, base) {
    return lireg.post('warning/epidemicConfigMapper/queryByCondition', params, base)
  },
  // 添加防疫详情
  addeqidMapper(params, base) {
    return lireg.post('/warning/epidemicConfigMapper/add', params, base)
  },
  // 修改防疫详情
  editeqidMapper(params, base) {
    return lireg.post('/warning/epidemicConfigMapper/edit', params, base)
  },
  delById(params, base) {
    return lireg.get(`/warning/epidemicConfigMapper/delDetailsById?epidemicConfigMapperId=${params}`, params, base)
  },
  // 防疫详情条件查询
  conditionepidemicConfigMappers(params, base) {
    return lireg.post('warning/dewormingConfigMapper/queryByCondition', params, base)
  },
  // 添加防疫详情
  addeqidMappers(params, base) {
    return lireg.post('/warning/dewormingConfigMapper/add', params, base)
  },
  // 修改防疫详情
  editeqidMappers(params, base) {
    return lireg.post('/warning/dewormingConfigMapper/edit', params, base)
  },
  delByIds(params, base) {
    return lireg.get(`/warning/dewormingConfigMapper/delDetailsById?dewormConfigMapperId=${params}`, params, base)
  },

  // 防疫详情条件查询
  feedConfigMappers(params, base) {
    return lireg.post('warning/feedChangeConfigMapper/queryByCondition', params, base)
  },
  // 添加防疫详情
  addfeedMappers(params, base) {
    return lireg.post('/warning/feedChangeConfigMapper/add', params, base)
  },
  // 修改防疫详情
  editfeedMappers(params, base) {
    return lireg.post('/warning/feedChangeConfigMapper/edit', params, base)
  },
  delfeedByIds(params, base) {
    return lireg.get(`/warning/feedChangeConfigMapper/delDetailsById?feedChangeConfigMapperId=${params}`, params, base)
  },
  // 编号查询
  numberQuery(params, base) {
    return lireg.get(`/healthy/deworming/queryByNo?no=${params}`, params, base)
  },
  // 编号批量查询
  numberBatchQuery(params, base) {
    return lireg.post('/healthy/deworming/queryListByNo', params, base)
  },
  // ------------------------------------------------------------------------------------
  // 分页查询
  pageQuerybree(params, base) {
    return lireg.post('/warning/breedWarningConfig/queryPageByCondition', params, base)
  },
  // 分页查询
  pageQuerylamb(params, base) {
    return lireg.post('/warning/lambWarningConfig/queryPageByCondition', params, base)
  },
  // 分页查询
  pageQuerymeas(params, base) {
    return lireg.post('/warning/measureWarningConfig/queryPageByCondition', params, base)
  },
  // 分页查询
  pageQueryeqid(params, base) {
    return lireg.post('/warning/epidemicPreventionConfig/queryPageByCondition', params, base)
  },
  // 分页查询
  pageQuerydewo(params, base) {
    return lireg.post('/warning/dewormingWarnConfig/queryPageByCondition', params, base)
  },
  // 分页查询
  pageQueryfeed(params, base) {
    return lireg.post('/warning/feedChangeWarningConfig/queryPageByCondition', params, base)
  },
  // 分页查询
  pageQuerywean(params, base) {
    return lireg.post('/warning/weaningWarningConfig/queryPageByCondition', params, base)
  },
  // 分页查询
  pageQuerytupping(params, base) {
    return lireg.post('/warning/tuppingWarning/queryPageByCondition', params, base)
  }
}
